package com.jeesite.modules.dp.entity.stocktmp;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;

/**
 * 选股模版管理Entity
 * @author hancing.com
 * @version 2024-12-26
 */
@Table(name="dp_tmpjson", alias="a", label="选股模版信息", columns={
		@Column(name="id", attrName="id", label="ID", isPK=true),
		@Column(name="userno", attrName="userno", label="创建用户"),
		@Column(name="tmpname", attrName="tmpname", label="模版名称", isQuery = true),
		@Column(name="tmptype", attrName="tmptype", label="模版类型", isQuery = true),
		@Column(name="iszb", attrName="iszb", label="是否作为指标", isQuery = true),
		@Column(name="zbtype", attrName="zbtype", label="指标类型", isQuery = true),
		@Column(name="zbsortno", attrName="zbsortno", label="指标排序", isQuery = true),
		@Column(name="tmpjson", attrName="tmpjson", label="模版内容"),
		@Column(name="issys", attrName="issys", label="系统模版", isQuery = true),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class DpTmpjson extends DataEntity<DpTmpjson> {
	
	private static final long serialVersionUID = 1L;
	private String userno;		// 创建用户
	private String tmpname;		// 模版名称
	private String tmptype;
	private String iszb;

	private String zbsortno;
	private String zbtype;
	private String tmpjson;		// 模版内容
	private String issys;		// 系统模版

	public DpTmpjson() {
		this(null);
	}
	
	public DpTmpjson(String id){
		super(id);
	}
	
	@Size(min=0, max=255, message="创建用户长度不能超过 255 个字符")
	public String getUserno() {
		return userno;
	}

	public void setUserno(String userno) {
		this.userno = userno;
	}
	
	@Size(min=0, max=255, message="模版名称长度不能超过 255 个字符")
	public String getTmpname() {
		return tmpname;
	}

	public void setTmpname(String tmpname) {
		this.tmpname = tmpname;
	}
	
	public String getIszb() {
		return iszb;
	}

	public String getZbsortno() {
		return zbsortno;
	}

	public void setZbsortno(String zbsortno) {
		this.zbsortno = zbsortno;
	}

	public void setZbtype(String zbtype) {
		this.zbtype = zbtype;
	}

	public String getZbtype() {
		return zbtype;
	}

	public void setIszb(String iszb) {
		this.iszb = iszb;
	}

	public String getTmptype() {
		return tmptype;
	}

	public void setTmptype(String tmptype) {
		this.tmptype = tmptype;
	}

	public String getTmpjson() {
		return tmpjson;
	}

	public void setTmpjson(String tmpjson) {
		this.tmpjson = tmpjson;
	}
	
	@NotBlank(message="系统模版不能为空")
	@Size(min=0, max=1, message="系统模版长度不能超过 1 个字符")
	public String getIssys() {
		return issys;
	}

	public void setIssys(String issys) {
		this.issys = issys;
	}
	
}